package com.usefullc.crawler.vo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.usefullc.common.domain.BaseDomain;
import com.usefullc.crawler.domain.OutputTemplate;
import com.usefullc.system.service.component.extend.ApiField;
import com.usefullc.system.service.component.extend.DictField;
import com.usefullc.system.service.component.extend.EnumField;
import com.usefullc.system.service.component.extend.UsefulField;
import com.usefullc.system.service.component.extend.ApiField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 爬虫输出模板返回实体
 * @author: 星空
 * @date: 2022-12-15
 */
@Data
public class OutputTemplateVo extends BaseDomain {

//useful_auto_generate_section_start


    @ApiModelProperty(notes = "数据状态（0 不存在，1 存在）")
    private Boolean delState;


    @ApiModelProperty(notes = "ID")
    private Long id;


    @ApiModelProperty(notes = "爬虫模版ID")
    private Long templateId;


    @ApiModelProperty(notes = "模板名称")
    private String name;


    @ApiModelProperty(notes = "描述")
    private String description;


    @ApiModelProperty(notes = "链接")
    private String url;


    @ApiModelProperty(notes = "用户(jdbc)")
    private String user;


    @ApiModelProperty(notes = "密码(jdbc)")
    private String password;

    @DictField(value = "outputTemplateType")
    @ApiModelProperty(notes = "类型(http,jdbc)")
    private String type;


    @ApiModelProperty(notes = "方法(http)")
    private String method;


    @ApiModelProperty(notes = "头部(http)")
    private String header;

    @UsefulField(format = "yyyy-MM-dd")
    @ApiModelProperty(notes = "数据创建时间")
    private Date gmtCreate;

    @UsefulField(format = "yyyy-MM-dd")
    @ApiModelProperty(notes = "数据最后修改时间")
    private Date gmtModified;


    @ApiModelProperty(notes = "数据包（http->body; jdbc->sql）")
    private String packet;

    @ApiModelProperty(notes = "输出字段配置")
    private String fieldsConfig;

    @ApiModelProperty(notes = "输出字段选中配置")
    private String fieldsCheckedConfig;

    @ApiModelProperty(notes = "过滤条件")
    private String filterCondition;

//useful_auto_generate_section_end


}
